package dataHardware;



import java.util.Date;

import hardwareToSQL.DataCollector;
import hardwareToSQL.InsertSQL;

public class OutputController {
	private Modem modem;
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		OutputController o = new OutputController();
		o.startController();

	}
	
	//Start the transfer of data from the hardware to the SQL
	private void startController() {

		//Run the data collector in a new thread
		modem = new Modem();
		//hardware.start();
		new Thread(modem, "modem").start();
		
		Sensor s = new Sensor("103", modem, 1000);
		s.startTimerAt(new Date());
		//Set up the class for processing the input strings to SQL
		
	}
}
